package com.tianzj.mongodb.dao;

import com.tianzj.mongodb.entity.User;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;

/**
 * @Auther: admin
 * @Date: 2019/7/22 16:17
 * @Description:
 */
public interface UserDao extends MongoRepository<User,String> {
    @Query("{'name':'?0'}")
    User findByname(String name);
}
